package com.example.ai_agent.demo.invoke;

import dev.langchain4j.community.model.dashscope.QwenChatModel;
import dev.langchain4j.model.chat.ChatLanguageModel;

/**
 * @author Yan.z.h
 * @version 1.0
 */
public class langchain4jInvoke {
    public static void main(String[] args) {
       ChatLanguageModel qwenChatModel = QwenChatModel.builder().apiKey(apiKey.apikey)
                .modelName("qwen-max")
                .build();
        String chat = qwenChatModel.chat("我是一个帅比");
        System.out.println("chat = " + chat);
    }
}
